import request from "@/utils/request";
//小程序查询客户信息列表
export function wxappUser(query) {
  return request({
    url: "/system/userVo/list",
    method: "get",
    params: query,
  });
}
// 查询客户信息列表
export function listUser(query) {
  return request({
    url: "/system/user/list",
    method: "get",
    params: query,
  });
}

// 查询客户信息详细
export function getUser(id = '') {
  return request({
    url: "/system/user/" + id,
    method: "get",
  });
}

// 新增客户信息
export function addUser(data) {
  return request({
    url: "/system/user",
    method: "post",
    data: data,
  });
}

// 修改客户信息
export function updateUser(data) {
  return request({
    url: "/system/user",
    method: "put",
    data: data,
  });
}

// 修改密码
export function updateUserPwd(data) {
  return request({
    url: "/system/user/profile/updatePwd",
    method: "put",
    data: data,
  });
}

// 删除客户信息
export function delUser(id) {
  return request({
    url: "/system/user/" + id,
    method: "delete",
  });
}

// 修改密码-1
export function resetPwd(data) {
  return request({
    url: "/system/user/resetPwd",
    method: "put",
    data: data,
  });
}
